package cate.common.table.activity.moonfight.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;
import cp.solution.util.str.Str;

@EExcelRowClass
public class MoonUnlockRow extends ERow {
    @EExcelNoteField(fieldName = "阶段ID")
    public int level;
    @EExcelNoteField(fieldName = "开启所需星星")
    public String conditionStr;
    @EExcelNoteField(fieldName = "开启所需活动天数")
    public int day;
    public int condi1;
    public int condi2;

    @Override
    public void decode() {
        super.decode();
        if (conditionStr.contains(":")) {
            int[] ints = Str.strArr2intArr(conditionStr.split(":"));
            condi1 = ints[0];
            condi2 = ints[1];
        }
    }
}
